Global Variables

Global variables are defined globally in the context of the TPT installation, that is independent of the TPT project file. The purpose of global variables is to specify settings for a TPT installation such as installation path, project path, and so forth that can be used in all TPT projects you open with this TPT installation. Global variables are stored in the global tpt.config file which is stored in the folder <AppData>/Local/TPT.

Autocompletion (Ctrl+Space) is available at all places, where you can use a global variable.

To create a global variable,

  1. Go to Options | Preferences | General Settings | Variables.
  2. Click Create a new variable , enter the property name and click OK.
  3. Click in the Value field and enter an expression.

Create a new property

You can create as many global variables as you like. To delete a variable, select it and click the Delete.

Global variables can be used in many places in TPT using the following syntax: ${<global_variable_name>}.

${<global_variable_name>} is case-sensitive. Make sure to write the name of the variable correctly.

Use a global variable in the Execution Configuration

Show global variables in report

Global variables are by default not displayed in the report. To add global variables to the report, select the check box Show in Report.

Show global variable in report